import request from "../utils/request"

//关注用户
export function follow(parentId,followerId){
    return request({
        method: "post",
        url: `/api/v1/relationship/subscribe/${parentId}/${followerId}`
    });
}
//取消关注
export function unFollow(parentId,followerId){
    return request({
        method: "delete",
        url: `/api/v1/relationship/unsubscribe/${parentId}/${followerId}`
    })
}
//是否关注
export function isFollow(parentId,followerId){
    return request({
        method: "get",
        url: `/api/v1/relationship/validate/${parentId}/${followerId}`
    })
}